﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Stack<string> stack = new Stack<string>();
            //入栈
            stack.Push("你");
            stack.Push("是");
            stack.Push("年");
            stack.Push("少");
            stack.Push("的");
            stack.Push("欢");
            stack.Push("喜");

            //移除栈顶元素的值，移除栈顶元素，并以字符串形式输出
            string str = string.Join(string.Empty, stack.ToArray());
            Console.WriteLine(str);
        }
    }
}
